<%--
  Created by IntelliJ IDEA.
  User: Tong-dev
  Date: 2015-12-25
  Time: 18:05
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <title>show message</title>
    <meta name="layout" content="mui"/>
</head>

<body>
<h3>${mailContent.subject}</h3>
发送人：${mailContent.from.name} <"${mailContent.from.mail}"><p></p>


<div class="mui-content">


    %{--<div>--}%
    %{--<g:if test="${mailContent.html}">--}%
    %{--${raw(mailContent.html)}--}%
    %{--</g:if>--}%
    %{--<g:else>--}%
    %{--${raw(mailContent.text)}--}%
    %{--</g:else>--}%

    %{--</div>--}%

</div>
<script>
    mui.init({
        subpages:[{
            url:' ${raw(createLink(action: 'mailBodyHtml',params:[folder:params.folder,uid:params.uid]))}',
            id:'mail_${params.uid}',
            styles:{
                top:'80px',//mui标题栏默认高度为45px；
                bottom:'0px'//默认为0px，可不定义；
            }
        }]
    });
    dd.ready(function () {
        <dd:config agentId="13305008" nonceStr="abcdefg"
               jsApiList="['device.notification.alert', 'device.notification.confirm', 'biz.navigation.setLeft','biz.navigation.setIcon',
                           'biz.navigation.setRight', 'biz.navigation.setTitle', 'runtime.info','runtime.permission.requestAuthCode']"/>


        dd.biz.navigation.setTitle({
            title: '招邮',
            onSuccess: function (result) {

            },
            onFail: function (err) {
            }
        });
    })

</script>
</body>

</html>